
package com.javaclimb.filmbuy.dao;

import com.javaclimb.filmbuy.entity.OrderGoodsRel;
import com.javaclimb.filmbuy.entity.OrderInfo;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * 订单和商品的关联表dao层
 */
@Repository
public interface OrderGoodsRelDao extends Mapper<OrderGoodsRel> {
    /*根据订单id查询订单关联的电影列表*/
    List<OrderGoodsRel> findByOrderId(Long orderId);

    /*根据订单id删除关联关系*/
    void deleteByOrderId(Long orderId);

    /*总销量*/
    Integer totalShopping();
}

